import axios from '@/utils/http'
export const getOrderInfo = () => {
  return axios.get('/order/trade')
}
export const getOrderAddress = () => {
  return axios.get('/userAddress/getOrderAddress')
}
export const buyOrder = ({goodsId,...data}) => {
  return axios.get(`/order/buy/${goodsId}`,data)
}
export const subOrder = (data) => {
  return axios.post('/order/submitOrder',data)
}
export const wxPayInfo = (orderNo) => {
  return axios.get(`/webChat/createJsapi/${orderNo}`)
}
export const wxPayStatus = (orderNo) => {
  return axios.get(`/webChat/queryPayStatus/${orderNo}`)
}
export const getOrderList = (page,limit) => {
  return axios.get(`/order/order/${page}/${limit}`)
}